-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not swap with projection when file is partitioned #14956
Do not swap with projection when file is partitioned #14956
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this @blaginin
It would also be great to find a reproducer somehow. I don't have any more time this morning to help but I can try to find some later today or tomorrow morning
Ok(all_alias_free_columns(projection.expr()).then(|| { | ||
|
||
Ok((all_alias_free_columns(projection.expr()) | ||
&& self.table_partition_cols.is_empty()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like the check might be if any of the columns needed are in the table_partition_cols (rather than there just being partition columns at all) 🤔 Or something like that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great point 🤗
88695a2
to
55f8b30
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @blaginin -- this is great. I was worried that this didn't handle the case when the pushed projection had an expression, but I wrote a test (I will make a follow on PR) and it seems to work
Nice job
I made a small follow on: |
* Do not swap with projection when file is partitioned * Narrow the case when not swapping * Add test
* Do not swap with projection when file is partitioned * Narrow the case when not swapping * Add test Co-authored-by: Dmitrii Blaginin <[email protected]>
Which issue does this PR close?
Rationale for this change
I feel like there should be a way to apply swapping even if the file is partitioned - but submitting a hotfix since it's a release blocker
What changes are included in this PR?
Are these changes tested?
Added a test
Are there any user-facing changes?
No